﻿using Coolzon.UI.Charts.Widgets;
using Coolzon.UI.Charts.Widgets.Convertors;
using Coolzon.UI.Charts.Widgets.Properties;
using Coolzon.UI.Core;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Visifire.Charts;

namespace Coolzon.UI.Charts
{
    public class ChartLibrary : PartLibrary
    {
        public override void Install()
        {
            RegisterPart("ChartPie", typeof(DataChartPie));
            RegisterPart("ChartColumn", typeof(DataChartColumn));
            RegisterPart("ChartArea", typeof(ChartArea));
            RegisterPart("GaugeCircular", typeof(DataGaugeCircularScale));


            RegisterProperty(typeof(SeriesYAxisType), typeof(SeriesYAxisTypeConverter), null);
            RegisterProperty(typeof(IntervalTypes), typeof(IntervalTypesConverter), null);
            RegisterProperty(typeof(ChartValueTypes), typeof(ChartValueTypesConverter), null);

        }
    }
}
